import re
import urllib

f = urllib.urlopen("http://www.astro.wisc.edu/~dolan/constellations/constellation_list.html")
lines = f.readlines()

for line in lines:
    #print(re.findall('\w+', line))
    #print(re.split('[\,\>\<\s]+', line))
    m = re.match('.*?href=\"(.*?)\"\>(.*?)\<.*', line)
    if m:
        for i in m.groups():
            print(i)